Skip to content

Fix paste detection triggering on fast typing#35

Merged
DevMando merged 1 commit intomainfrom
Fix/paste-detection-fast-typing
Mar 4, 2026
Merged

Fix paste detection triggering on fast typing#35
DevMando merged 1 commit intomainfrom
Fix/paste-detection-fast-typing

Conversation

@DevMando
Copy link
Copy Markdown
Owner

@DevMando DevMando commented Mar 4, 2026

Summary

  • Fixed a bug where typing quickly would trigger paste detection, showing [pasted N characters] instead of the actual input
  • Removed the [pasted N characters] summary display — pasted text now appears inline as-is
  • Removed the pastedFullText variable and its special backspace handling, simplifying the input logic

Changes

  • Services/CommandAutocomplete.cs: Replaced paste-vs-typing heuristic (previously any buffered keystroke was treated as a
    paste) with a threshold of 5+ buffered characters. Then removed the summary display entirely so both fast typing and real pastes
    show the actual text inline.

… just showing full text after pasting to avoid rendering issues at the moment. The user can now type very fast, and it won't be picked up as a 'paste'
@DevMando DevMando merged commit aa1b557 into main Mar 4, 2026
@DevMando DevMando deleted the Fix/paste-detection-fast-typing branch March 4, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant